package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.festivalgift.FestivalGiftData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class FestivalGiftBusiness {

    public static Map<Integer, FestivalGiftData> getFestivalGiftDataMap(int activityId, long userId) {
        return DaoHelper.getFestivalGiftDaoImpl().getUserMall(activityId, userId);
    }

    public static boolean addFestivalGiftData(FestivalGiftData userData) {
        return DaoHelper.getFestivalGiftDaoImpl().add(userData);
    }

    public static boolean updateFestivalGiftData(FestivalGiftData userData) {
        return DaoHelper.getFestivalGiftDaoImpl().update(userData);
    }
}
